




<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="用户名|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="wallet_id">
                    <option value="" >全部币种</option>
                    {volist name='wallet' id='vo'}
                    <option value="{$vo['id']}" {notempty name="param['wallet_id']"}{if condition="$param['wallet_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="is_add">
                    <option value="" >全部状态</option>
                    <option value="1" {notempty name="param['is_add']"}{if condition="$param['is_add'] eq 1"} selected="selected" {/if}{/notempty} >增加</option>
                    <option value="2" {notempty name="param['is_add']"}{if condition="$param['is_add'] eq 2"} selected="selected" {/if}{/notempty} >减少</option>
                </select>
            </div>
            <button class="layui-btn"  id="search"  url="{:url('account_log')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <!--<button class="layui-btn" onclick="x_admin_show('添加用户','./member-add.html',600,400)"><i class="layui-icon"></i>添加</button>-->
        <!--<ob_link> <button class="layui-btn export" url="{:url('exportMemberList')}"> 导 出</button></ob_link>-->
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <!--<th>-->
            <!--<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>-->
            <!--</th>-->
            <th>序号</th>
            <th>流水号</th>
            <th>币种</th>
            <th>用户名</th>
            <th>类型</th>
            <th>UID</th>
            <th>数量</th>
            <th>状态</th>
            <!--<th>变动前余额</th>-->
            <!--<th>变动后余额</th>-->
            <th>说明</th>
            <th>时间</th>
        </thead>
        {notempty name='list'}
        <tbody>
        {volist name='list' id='vo' key="k"}
        <tr>
            <td>{$k}</td>
            <td>{$vo.serial_number}</td>
            <td>{$vo->wallet->name}</td>
            <td>{$vo.username}</td>
            <td>{$vo.type_text}</td>
            <td>{$vo.user_id}</td>
            <td>{$vo.number}</td>
            <td>{if condition="$vo['is_add'] eq 1" }增加{else/}减少{/if}</td>
            <!--<td>{$vo.before_blance}</td>-->
            <!--<td>{$vo.after_blance}</td>-->
            <td>{$vo.remark}</td>
            <td>{$vo.create_time}</td>

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list'}   {$list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>
